package heliotrope.net.loader
{
	import flash.events.EventDispatcher;

	public class LoadMission extends EventDispatcher
	{
		protected var _url:String;
		protected var _target:ILoadTarget;
		protected var _loadType:String;

//		protected var _id:uint;
		protected var _retryTimes:int;
		public function LoadMission(url_:String, target_:ILoadTarget, loadType_:String, retryTimes_:int=-1)
		{
			_url		= url_;
			_target		= target_;
			_loadType	= loadType_;
			_retryTimes	= retryTimes_;
		}

		public function get retry():int
		{
			return _retryTimes;
		}
		
		public function set retry(value:int):void
		{
			_retryTimes = value;
		}
		
		public function get url():String
		{
			return _url;
		}
		
		public function get target():ILoadTarget
		{
			return _target;
		}
		
		public function get loadType():String
		{
			return _loadType;
		}
		
//		public function get id():uint
//		{
//			return _id;
//		}
		
		override public function toString():String
		{
			return "LoadMission"+"[url:"+_url + " target:"+_target +" loadType:"+_loadType+"]";
		}

	}
}